package com.skyger.tool;



import java.awt.Image;

import javax.swing.ImageIcon;

/**
 * image process class
 * @author skyger  E-mail: jintianfan@gmail.com
 * @version v0.1.0 created：2013-4-19 下午4:57:22
 * 
 */
public class ImageTool {
	public static ImageIcon resize(ImageIcon icon,int width,int height){
		icon.setImage(icon.getImage().getScaledInstance(width,height,Image.SCALE_DEFAULT)); 
		return icon;
	}
}


